// 订单模块 路径
import Home from "@/view/home.vue"
import { RouteRecordRaw } from "vue-router"

const orderRouter: RouteRecordRaw = // 订单管理
{
  path: '/order',
  name: 'Order',
  component: Home,
  meta: {
    title: 'menus.wOrderManger',
    icon: 'Notebook',
    permission: "system:order",
    roles: ['admin', 'editor'],
  },
  children: [
    // 订单查询
    {
      path: 'orderQuery',
      name: 'orderQuery',
      component: () => import('@/view/children/order/orderQuery.vue'),
      meta: {
        title: 'menus.wOrderQuery',
        permission: 'system:order:orderInfo',
        icon: 'Notification',
      },
    },
    // 订单处理
    {
      path: 'orderAction',
      name: 'orderAction',
      component: () => import('@/view/children/order/orderAction.vue'),
      meta: {
        title: 'menus.wOrderAction',
        permission: 'system:order:orderManage',
        icon: 'Money',
      },
    }
  ]
}

export default orderRouter